#include "Constant.h"
struct Vector3;

struct Entity
{
public:
	Entity(float mass, Vector3 *position, Vector3 *initForce);

	float LifeTime();
	float Mass();

	Vector3		*InitForce();
	Vector3		*AccumForce();
	Vector3		*Position();
	Vector3		*Velocity();

	void AddForce(Vector3& frc);
	void Init();
	void Reset();
	void Invert(Axis axis);
	void ReduceForce();
	void Update(float time);
private:
	float		lifeTime;
	float		mass;

	Vector3		*acceleration;
	Vector3		*initForce;
	Vector3		*accumForce;
	Vector3		*position;
	Vector3		*velocity;
};